/*
 * @Author: your name
 * @Date: 2021-05-27 16:46:22
 * @LastEditTime: 2021-06-24 20:11:12
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \dolphin-data-center-front-end\src\services\SocialSecurityFund.js
 */
import Qs from 'qs'

import {
  supplierPageListApiPath,
  supplierSaveApiPath,
  supplierUpdateApiPath,
  getAllCityApiPath,
  supplierGetByIdApiPath,
  findDeptNameByNameLikeApiPath,
  findByNameLikeApiPath,
  supplierRemoveApiPath,
  getPolicyListByCityIdApiPath,
  pageSocialListApiPath,
  proNameBaseSelectApiPath,
  findSupplierInfoApiPath,
  getSocialInfoByIdApiPath,
  getPolicyItemListByPolicyIdApiPath,
  insuredCountApiPath,
  queryDetailApiPath,
  exportEmployeeSocialApiPath,
  batchCreateOrderApiPath,
  batchCreateOrderbjApiPath,
  workplaceStatisticsApiPath,
  workplaceTaskListApiPath,
  quickMenuApiPath,
  getRemittanceDetailsPageApiPath,
  getAdjustmentDetailsPageApiPath,
  exportRemittanceDetailsApiPath,
} from './api'

import { METHOD, request } from '@/utils/request'

export function supplierPageListApi(params) {
  return request(supplierPageListApiPath, METHOD.POST, params)
}

export function supplierSaveApi(params) {
  return request(supplierSaveApiPath, METHOD.POST, params)
}

export function supplierUpdateApi(params) {
  return request(supplierUpdateApiPath, METHOD.POST, params)
}

export function getAllCityApi(params) {
  return request(getAllCityApiPath, METHOD.GET, params)
}

export function supplierGetByIdApi(params) {
  return request(supplierGetByIdApiPath, METHOD.GET, params)
}

export function findDeptNameByNameLikeApi(params) {
  return request(findDeptNameByNameLikeApiPath, METHOD.GET, params)
}

export function findByNameLikeApi(params) {
  return request(findByNameLikeApiPath, METHOD.POST, params)
}

export function supplierRemoveApi(params) {
  return request(`${supplierRemoveApiPath}?id=${params}`, METHOD.PUT)
}

export function getPolicyListByCityIdApi(params) {
  return request(getPolicyListByCityIdApiPath, METHOD.GET, params)
}

export function pageSocialListApi(params) {
  return request(pageSocialListApiPath, METHOD.POST, params)
}

export function proNameBaseSelectApi(params) {
  return request(proNameBaseSelectApiPath, METHOD.GET, params)
}

export function findSupplierInfoApi(params) {
  return request(findSupplierInfoApiPath, METHOD.GET, params)
}

export function getSocialInfoByIdApi(params) {
  return request(getSocialInfoByIdApiPath, METHOD.GET, params)
}

export function getPolicyItemListByPolicyIdApi(params) {
  return request(
    `${getPolicyItemListByPolicyIdApiPath}?policyId=${params}`,
    METHOD.POST
  )
}

export function insuredCountApi(params) {
  return request(insuredCountApiPath, METHOD.GET, params)
}

export function queryDetailApi(params) {
  return request(queryDetailApiPath, METHOD.GET, params)
}

export function exportEmployeeSocialApi(params) {
  return request(exportEmployeeSocialApiPath, METHOD.POST, params)
}

export function batchCreateOrderApi(params) {
  return request(batchCreateOrderApiPath, METHOD.GET, params)
}

export function batchCreateOrderbjApi(params) {
  return request(batchCreateOrderbjApiPath, METHOD.GET, params)
}

export function workplaceStatisticsApi(params) {
  return request(workplaceStatisticsApiPath, METHOD.GET, params)
}

export function workplaceTaskListApi(params) {
  return request(workplaceTaskListApiPath, METHOD.GET, params)
}

export function quickMenuApi(params) {
  return request(quickMenuApiPath, METHOD.GET, params)
}

export function getRemittanceDetailsPageApi(params) {
  return request(getRemittanceDetailsPageApiPath, METHOD.POST, params)
}

export function exportRemittanceDetailsApi(params) {
  return request(exportRemittanceDetailsApiPath, METHOD.GET, params)
}

export function getAdjustmentDetailsPageApi(params) {
  return request(getAdjustmentDetailsPageApiPath, METHOD.POST, params)
}

export default {
  supplierPageListApi,
  supplierSaveApi,
  supplierUpdateApi,
  getAllCityApi,
  supplierGetByIdApi,
  findDeptNameByNameLikeApi,
  findByNameLikeApi,
  supplierRemoveApi,
  getPolicyListByCityIdApi,
  pageSocialListApi,
  proNameBaseSelectApi,
  findSupplierInfoApi,
  getSocialInfoByIdApi,
  getPolicyItemListByPolicyIdApi,
  insuredCountApi,
  queryDetailApi,
  exportEmployeeSocialApi,
  batchCreateOrderApi,
  workplaceStatisticsApi,
  workplaceTaskListApi,
  quickMenuApi,
  getRemittanceDetailsPageApi,
  exportRemittanceDetailsApi,
  getAdjustmentDetailsPageApi,
  batchCreateOrderbjApi,
}
